home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
book
/
win
/
ch18
/
18fig22b.wrl
< prev
next >
Wrap
Text File
|
1996-09-23
|
2KB
|
80 lines
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright [1997] By
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
children [
# Lower-left video screen
Shape {
appearance Appearance {
# no material, use emissive texturing
texture DEF Video ImageTexture {
url "grand.jpg"
}
}
geometry DEF Screen IndexedFaceSet {
solid FALSE
coord Coordinate {
point [
0.0 0.0 0.0, 1.0 0.0 0.0,
1.0 1.0 0.0, 0.0 1.0 0.0,
]
}
coordIndex [ 0, 1, 2, 3 ]
texCoord TextureCoordinate {
point [
0.0 0.0, 0.5 0.0,
0.5 0.5, 0.0 0.5,
]
}
texCoordIndex [ 0, 1, 2, 3 ]
}
},
# Lower-right video screen
Transform {
translation 1.1 0.0 0.0
children Shape {
appearance Appearance {
# no material, use emissive texturing
texture USE Video
textureTransform TextureTransform {
# Slide to lower-right quadrant
translation 0.5 0.0
}
}
geometry USE Screen
}
},
# Upper-left video screen
Transform {
translation 0.0 1.1 0.0
children Shape {
appearance Appearance {
# no material, use emissive texturing
texture USE Video
textureTransform TextureTransform {
# Slide to upper-left quadrant
translation 0.0 0.5
}
}
geometry USE Screen
}
},
# Upper-right video screen
Transform {
translation 1.1 1.1 0.0
children Shape {
appearance Appearance {
# no material, use emissive texturing
texture USE Video
textureTransform TextureTransform {
# Slide to upper-right quadrant
translation 0.5 0.5
}
}
geometry USE Screen
}
}
]
}